package cn.gbase.jiangsu.data.transfer.bean;

import java.util.Date;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Table;

import cn.gbase.jiangsu.data.transfer.validation.annotation.Validations;

/**
 * 供货商.
 * 
 */
@Table("supplier")
public class Supplier extends BaseDto {

	/**
	 * ID.
	 */
	@Column
	@Id
	private int id;

	/**
	 * 供货商名称.
	 */
	@Column("supplier_name")
	@Validations(required = true, strLen = { 1, 100 }, errorMsg = "供货商名称应为1-100个字符。")
	private String supplierName;

	/**
	 * 供货商编码.
	 */
	@Column("supplier_code")
	@Validations(required = false, strLen = { 0, 30 }, errorMsg = "供货商编码应为1-30个字符。")
	private String supplierCode;

	/**
	 * 负责人.
	 */
	@Column("leader_name")
	@Validations(required = false, strLen = { 0, 30 }, errorMsg = "负责人应为1-30个字符。")
	private String director;

	/**
	 * 负责人电话.
	 */
	@Column("leader_phone")
	@Validations(required = false, strLen = { 0, 30 }, errorMsg = "负责人电话应为1-30个字符。")
	private String directorPhone;

	/**
	 * 联系人.
	 */
	@Column("contact_name")
	@Validations(required = false, strLen = { 0, 30 }, errorMsg = "联系人应为1-30个字符。")
	private String contact;

	/**
	 * 联系人电话.
	 */
	@Column("contact_phone")
	@Validations(required = false, strLen = { 0, 30 }, errorMsg = "联系人电话应为1-30个字符。")
	private String contactPhone;

	/**
	 * 传真.
	 */
	@Column("fax")
	@Validations(required = false, strLen = { 0, 30 }, errorMsg = "传真应为1-30个字符。")
	private String faxNumber;

	/**
	 * 地址.
	 */
	@Column("address")
	@Validations(required = false, strLen = { 0, 100 }, errorMsg = "地址应为1-100个字符。")
	private String address;

	/**
	 * 区域ID.
	 */
	@Column("area_id")
	@Validations(required = false, strLen = { 0, 30 }, errorMsg = "区域应为1-30个字符。")
	private String areaId;

	/**
	 * 街道.
	 */
	@Column("street")
	@Validations(required = false, strLen = { 0, 30 }, errorMsg = "街道应为1-30个字符。")
	private String street;

	/**
	 * 邮编.
	 */
	@Column("postal")
	@Validations(required = false, strLen = { 0, 10 }, errorMsg = "邮编应为1-10个字符。")
	private String postCode;

	/**
	 * 等级（运营商对供货商的评级）.
	 */
	@Column("grade")
	private int grade;

	/**
	 * 删除状态.
	 */
	@Column("delete_flag")
	private int deleteFlag;

	public int getDeleteFlag() {
		return deleteFlag;
	}

	public void setDeleteFlag(int deleteFlag) {
		this.deleteFlag = deleteFlag;
	}

	/**
	 * 线下供应商标志，1为线下.
	 */
	@Column("offline_flag")
	private int offlineFlag;

	public int getOfflineFlag() {
		return offlineFlag;
	}

	public void setOfflineFlag(int offlineFlag) {
		this.offlineFlag = offlineFlag;
	}

	/**
	 * 备注.
	 */
	@Column
	private String remark;

	/**
	 * 创建时间.
	 */
	@Column("create_date")
	private Date addtime;

	/**
	 * 创建人.
	 */
	@Column("create_user")
	private String createUser;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getSupplierName() {
		return supplierName;
	}

	public void setSupplierName(String supplierName) {
		this.supplierName = supplierName;
	}

	public String getSupplierCode() {
		return supplierCode;
	}

	public void setSupplierCode(String supplierCode) {
		this.supplierCode = supplierCode;
	}

	public String getDirector() {
		return director;
	}

	public void setDirector(String director) {
		this.director = director;
	}

	public String getDirectorPhone() {
		return directorPhone;
	}

	public void setDirectorPhone(String directorPhone) {
		this.directorPhone = directorPhone;
	}

	public String getContact() {
		return contact;
	}

	public void setContact(String contact) {
		this.contact = contact;
	}

	public String getContactPhone() {
		return contactPhone;
	}

	public void setContactPhone(String contactPhone) {
		this.contactPhone = contactPhone;
	}

	public String getFaxNumber() {
		return faxNumber;
	}

	public void setFaxNumber(String faxNumber) {
		this.faxNumber = faxNumber;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getStreet() {
		return street;
	}

	public void setStreet(String street) {
		this.street = street;
	}

	public String getPostCode() {
		return postCode;
	}

	public void setPostCode(String postCode) {
		this.postCode = postCode;
	}

	public int getGrade() {
		return grade;
	}

	public void setGrade(int grade) {
		this.grade = grade;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Date getAddtime() {
		return addtime;
	}

	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public String getAreaId() {
		return areaId;
	}

	public void setAreaId(String areaId) {
		this.areaId = areaId;
	}

}
